<script setup lang="ts">
import haveRealName from './components/haveRealName.vue'
import onRealName from './components/noRealName.vue'
import { onMounted } from 'vue'
import { storeToRefs } from 'pinia'
import { useOrderStore } from '@/store/modules/orderStore'
const orderStore = useOrderStore()
const { userInfo_plus } = storeToRefs(orderStore)

onMounted(() => {
  orderStore.membershipInformation()
})
</script>

<template>
  <haveRealName v-if="userInfo_plus.authStatus === 1" />
  <onRealName v-if="userInfo_plus.authStatus === 0" />
</template>

<style scoped></style>
